package com.yawn.zdweb.defect;

import feign.Response;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.InputStream;

@FeignClient(name = "zd-defect", fallback = GraphServiceImpl.class)
public interface GraphService {

    @GetMapping("/graph/process/{id}")
    Response process(@PathVariable("id") String id);

    @GetMapping("/graph/task/{id}")
    Response task(@PathVariable("id") String id);

    @GetMapping("/graph/graph")
    Response graph();

}
